<?php

namespace common\models;

use Yii;
use yii\behaviors\TimestampBehavior;

/**
 * This is the model class for table "{{%ceping_report}}".
 *
 * @property string $id
 * @property string $level
 * @property string $name
 * @property string $content
 * @property integer $paperId
 * @property string $containTag
 * @property string $removeTag
 * @property string $content_1
 * @property string $content1_tag
 * @property string $content_2
 * @property string $content2_tag
 * @property string $content_3
 * @property string $content3_tag
 * @property string $content_4
 * @property string $content4_tag
 * @property string $content_5
 * @property string $content5_tag
 * @property integer $weight
 * @property integer $status
 * @property string $created_at
 * @property string $updated_at
 * @property string $res1
 * @property string $res2
 * @property string $res3
 */
class CepingReport extends \yii\db\ActiveRecord    //测评结果报告表
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%ceping_report}}';
    }
    public function behaviors()
    {
        return [
            'class' => TimestampBehavior::className(),
        ];
    }
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [[ 'level', 'name', 'content'], 'required'],
            [['id', 'paperId', 'weight', 'status', 'created_at', 'updated_at'], 'integer'],
            [['content', 'content_1', 'content_2', 'content_3', 'content_4', 'content_5', 'content_6', 'content_1_title', 'content_2_title', 'content_3_title', 'content_4_title', 'content_5_title', 'content_6_title'], 'string'],
            [['level'], 'string', 'max' => 40],
            [['name'], 'string', 'max' => 80],
            [['containTag', 'removeTag', 'res1', 'res2', 'res3'], 'string', 'max' => 80],
            [['content1_tag', 'content2_tag', 'content3_tag', 'content4_tag', 'content5_tag', 'content6_tag'], 'string', 'max' => 40]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'level' => '报告类型',  //版本  2收费版  1免费版 3 其他
            'name' => '报告名',   //报告名
            'content' => '报告内容',    //报告内容
            'paperId' => '对应试卷id',   //对应试卷id
            'containTag' => '包含标签', //包含标签
            'removeTag' => '排除标签',  //排除标签
            'content_1' => '片段1',  //片段1
            'content1_tag' => '片段1标签', //有此标签选择片段一
            'content_2' => '片段2', //片段2
            'content2_tag' => '片段2标签', //有此标签选择片段2
            'content_3' => '片段3',   //片段3
            'content3_tag' => '片段3标签', //有此标签选择片段三
            'content_4' => '片段4',
            'content4_tag' => '片段4标签',
            'content_5' => '片段5',
            'content5_tag' => '片段5标签',
            'content_6' => '片段6',
            'content6_tag' => '片段6标签',
            'weight' => '权值',
            'status' => '状态',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
            'res1' => 'Res1',
            'res2' => 'Res2',
            'res3' => 'Res3',
        ];
    }
}
